<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link href="https://cdn.jsdelivr.net/npm/animate.css@3.5.1" rel="stylesheet" type="text/css">
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
  <button @click="clickFn($event)">button</button>
  <transition name="custom-classes-transition" enter-active-class="animated tada" leave-active-class="animated bounceOutRight">
    <p v-if="show">nihao</p>
  </transition>
</div>
</body>
<script>
  new Vue({
    el: '#app',
    data: {
      show: true
    },
    methods: {
      clickFn(e, slot) {
        console.log(e)
        console.log(slot)
        this.show = !this.show
      }
    }
  })
</script>
</html>